﻿<%@ Page Title="" Language="C#" MasterPageFile="~/customer/Cliente.Master" AutoEventWireup="true"
    CodeBehind="showpedido.aspx.cs" Inherits="Loja.customer.showpedido" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script src="../scripts/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../scripts/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../scripts/jquery-ui-1.8.16.custom/css/custom-theme/jquery-ui-1.8.16.custom.css" />
    <style>
        h1
        {
            padding: 20px 20px 20px 20px;
            color: White;
        }
        #pedido
        {
            border-top-right-radius: 15px;
            border-top-left-radius: 15px;
            border-bottom-right-radius: 15px;
            border-bottom-left-radius: 15px;
            background-color: RGB(139,69,19);
            width: 100%;
            clear: right;
        }
        #conteudo_topo
        {
            margin: 20px 0 0 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="conteudo_topo">
        <table>
            <tr>
                <td style="width:20%">
                    <div id="pedido">
                        <h1>
                            <asp:Label runat="server" Text="0000005" ID="lblPedCod"> </asp:Label>
                        </h1>
                    </div>
                </td>
                <td>
                    <div style="margin:0 0 0 20px;">
                        <asp:Label runat="server" Text="Data do Pedido:" ID="Label1" CssClass="labelCadastro"> </asp:Label>
                        <asp:Label runat="server" Text="" ID="lblDatPed" CssClass="labelCadastro"> </asp:Label><br />
                        <asp:Label runat="server" Text="Entregue em:" ID="Label3" CssClass="labelCadastro"> </asp:Label>
                        <asp:Label runat="server" Text="" ID="lblDatEnt" CssClass="labelCadastro"> </asp:Label><br />
                        <asp:Label runat="server" Text="Forma de Pagamento:" ID="Label2" CssClass="labelCadastro"> </asp:Label>
                        <asp:Label runat="server" Text="" ID="lblForPag" CssClass="labelCadastro"> </asp:Label><br />
                        <asp:Label runat="server" Text="Situação:" ID="Label4" CssClass="labelCadastro"> </asp:Label>
                        <asp:Label runat="server" Text="" ID="lblSitPed" CssClass="labelCadastro"> </asp:Label>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="conteudo_item">
        <table id="tabela" style="float: left; clear: both; width: 780px">
            <thead class="cabecalho">
                <tr>
                    <th scope="col" colspan="1">
                        <strong>Item</strong>
                    </th>
                    <th scope="col" colspan="1">
                        <strong>Produto</strong>
                    </th>
                    <th scope="col" colspan="1">
                        <strong>Peso</strong>
                    </th>
                    <th scope="col" colspan="1">
                        <strong>Valor Unit.</strong>
                    </th>
                    <th scope="col" colspan="1">
                        <strong>Qtde.</strong>
                    </th>
                    <th scope="col" colspan="1">
                        <strong>Valor</strong>
                    </th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <td colspan="4">
                    </td>
                    <td colspan="1">
                        <strong>Total</strong>
                    </td>
                    <td colspan="1">
                        <strong>
                            <asp:label runat="server" id="lblValorTotal">
                            </asp:label>
                        </strong>
                    </td>
                    </tr>
            </tfoot>
            <tbody>
                <asp:Repeater runat="server" ID="rptItens">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem,"IteSeq") %>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "ProDes")%>
                            </td>
                            <td>
                                <%# String.Format("{0:0}",DataBinder.Eval(Container.DataItem, "PtmPes"))%> g.
                            </td>
                            <td>
                                <%# String.Format("{0:c}", DataBinder.Eval(Container.DataItem, "IteVal"))%>
                            </td>
                            <td>
                                <%# String.Format("{0}",DataBinder.Eval(Container.DataItem, "IteQtd"))%>
                            </td>
                            <td>
                                <%# String.Format("{0:c}", Convert.ToDouble(DataBinder.Eval(Container.DataItem, "IteVal")) * Convert.ToDouble(DataBinder.Eval(Container.DataItem, "IteQtd")))%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    <div id="entrega" style="clear: left; margin: 20px 0 0 40px; width: 780px">
        <fieldset>
            <legend class="labelCadastro">Dados da entrega</legend>
            <span class="labelCadastro">Endreço:</span><asp:label runat="server" id="lblEndereco"  cssclass="labelCadastro"></asp:label>
            <span class="labelCadastro"> nº</span><asp:label runat="server" id="lblNumero">
            </asp:label>
            <br />
            <span  class="labelCadastro">Bairro:</span><asp:Label runat="server" id="lblBairro" cssclass="labelCadastro"></asp:Label><br />
            <span  class="labelCadastro">CEP:</span><asp:Label runat="server" id="lblCEP" cssclass="labelCadastro"></asp:Label><br />
            <span class="labelCadastro">Cidade:</span><asp:Label runat="server" id="lblCidade" cssclass="labelCadastro"></asp:Label><br />
            <span class="labelCadastro">Estado:</span><asp:Label runat="server" id="lblEstado" cssclass="labelCadastro"></asp:Label>
        </fieldset>
    </div>
</asp:Content>
